package com.blog.backend.service.service;

import com.blog.backend.domain.BlogUser;
import com.blog.backend.mapper.UserMapper;
import com.blog.backend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Auman
 * @time 2024/4/27 23:53
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper mapper;

    @Override
    public int addUser(BlogUser user) {
        return mapper.insert(user);
    }
}
